Xbasic
DIR_GET Function
Syntax
C DIR_GET()
Description
DIR_GET() returns a string containing the current working directory.
Populate an array with the names of all tables in the A_SPORTS directory. The current directory will be saved and restored after the operation.
dim file_names[250] as C
old_directory = dir_get()
dir_put("c:\a5\a_sports")
files = filefind.first("*.dbf")
I = 1
while .not. files.eof()
file_names[I] = files.name()
files.next()
I = I + 1
end while
dir_put(old_directory)See Also